package com.alibaba.otter.shared.arbitrate.autoconfigure;

import com.alibaba.otter.shared.arbitrate.impl.alarm.AlarmClientService;
import com.alibaba.otter.shared.arbitrate.impl.communication.ArbitrateCommunicationClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration(proxyBeanMethods = false)
public class ArbitrateAlarmConfiguration {

    @Bean
    public AlarmClientService alarmClientService(ArbitrateCommunicationClient arbitrateCommunicationClient) {
        AlarmClientService alarmClientService = new AlarmClientService();
        alarmClientService.setArbitrateCommmunicationClient(arbitrateCommunicationClient);
        return alarmClientService;
    }


}
